<template>
    <div class="background">
        <div class="box">
            <div> <img :src="imgUrl" alt="" srcset="" class="dog" /></div>
            <div class="whitebox">
                <h1 class="block wel">Welcome Back!</h1>
                <el-input class="input"></el-input>
                <el-input class="input"></el-input>
                <el-checkbox class="checkbox">remember me</el-checkbox>
                <el-button class="login">Login</el-button>
                <div class="dicv"></div>
                <div class="Brand" @click="goTop">
                    <span class="Brandtext">G</span>
                    .btn-google
                </div>
                <div class="Brand f_brand" @click="goTop">
                    <span class="Brandtext">F</span>
                    .btn-facebook
                </div>
                <div class="dicv"></div>
                <a class="small" href="forgot-password.html">Forgot Password?</a>
                <a class="small" href="register.html">Create an Account!</a>
            </div>
        </div>
    </div>
</template>

<script>
import imgPath from "../assets/picture/dog.png"
export default {
    name: '',
    data() {
        return {
            imgUrl: imgPath
        }
    }
}
</script>

<style scoped lang="less">
.background {
    background-color: #4e73df;
    height: 100%;
    right: 0;
    width: 100%;
    position: fixed;
    overflow: scroll;
    top: 0px;
}

.box {
    position: absolute;
    left: 0;
    right: 0;
    margin: 0 auto;
    margin-top: 90px;
    margin-bottom: 70px;
    width: 900px;
    height: 570px;
    border-radius: 5px;

}

.dog {
    width: 450px;
    height: 570px;
    border-bottom-right-radius: 0px;
    border-top-right-radius: 0px
}

.whitebox {
    width: 450px;
    height: 570px;
    background-color: aliceblue;
    border-bottom-right-radius: 5px;
    border-top-right-radius: 5px
}

.Brand {
    width: 345px;
    border-radius: 22px !important;
    height: 44px;
    margin-left: 46px;
    background-color: rgb(225, 39, 23);
    border-radius: 5px;
    margin-bottom: 15px;
    text-align: center;
    color: #fff;
    font-size: 15px;
    font-weight: 410;
    line-height: 40px;
    font-family: Nunito;
}

.Brandtext {
    font-size: 20px;
    font-weight: 550;
}

.f_brand {
    background-color: #30497c;
}

.wel {
    color: rgb(58, 59, 69);
    font-family: Nunito;
    font-size: 24px;
    font-weight: 400;
    line-height: 40px;
    text-align: center;
    margin-top: 40px;
}

.input {
    font-size: .8rem;
    margin-bottom: 15px;
    color: #6e707e;
    background-color: #fff;
    border-color: #bac8f3;
    margin-left: 46px;
    width: 345px;
    border-radius: 20px;

}

/deep/ .el-input__inner {
    border-radius: 25px !important;
    height: 50px !important;

}

.checkbox {
    display: block;
    margin-left: 46px;
    margin-bottom: 15px;
}

.login {
    margin-left: 46px;
    margin-bottom: 15px;
    background-color: rgb(78, 115, 223);
    color: aliceblue;
    width: 345px;
    border-radius: 22px !important;
    height: 44px;
}

.dicv {
    width: 345px;
    height: 15px;
    margin-left: 46px;
    border-top: 1px solid #c7cbe3;
}

a {
    display: block;
    text-decoration: none;
    font-size: 12.8px;
    font-weight: 400;
    line-height: 19.2px;
    color: rgb(34, 74, 190);
    font-family: Nunito;
    text-align: center;
    margin-bottom: 10px;
}
</style>